<template>
  <div ref="wrapEl" class="flex">
    <Dict class="w-1/2" @dictionary-change="handleDictionaryChange" />
    <DictEntry class="w-1/2" :dictId="dictId" />
  </div>
</template>
<script lang="ts" setup>
  import { reactive, ref } from 'vue';
  import Dict from './dict/Dict.vue';
  import DictEntry from './dictentry/DictEntry.vue';

  defineOptions({ name: 'DictManagePage' });
  const dictId = ref('');
  // 字典选中事件
  const handleDictionaryChange = (id: string) => {
    dictId.value = id;
  };
</script>
